package com.shenmazong.rabbitmq;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TeachConsumer {

    @RabbitListener(queuesToDeclare = @Queue("TeachRabbit"))
    public void TeachConsumer(String message){
        System.out.println("管理员已经修改教材，修改后为： = " + message);
    }

}
